<template name="_sidenav">
  {{#if currentUser}}
  <h6><i class="fa fa-database"></i> _日志列表</h6>
  <ul class="nav nav-sidebar">
  {{#each collections}}
    <li class="_active">
      <a href="{{pathFor 'logs.show' dbname=name}}">
        {{name}}
        <span class="badge pull-right">500</span>
      </a>
    </li>
    {{/each}}
  </ul>
  {{/if}}
  <hr>

  <ul class="nav nav-sidebar">
    <!-- Hack because iron router is not letting us link to root -->
    <li onclick="window.location = '/';"><a href="/"><i class="fa fa-reply"></i> Back to Root</a></li>
  </ul>
</template>